import request from '@/utils/request'

// 查询运货统计列表
export function listTraceStat(query) {
  return request({
    url: '/app/traceStat/list',
    method: 'get',
    params: query
  })
}

// 查询运货统计详细
export function getTraceStat(iid) {
  return request({
    url: '/app/traceStat/' + iid,
    method: 'get'
  })
}

// 新增运货统计
export function addTraceStat(data) {
  return request({
    url: '/app/traceStat',
    method: 'post',
    data: data
  })
}

// 修改运货统计
export function updateTraceStat(data) {
  return request({
    url: '/app/traceStat',
    method: 'put',
    data: data
  })
}

// 删除运货统计
export function delTraceStat(iid) {
  return request({
    url: '/app/traceStat/' + iid,
    method: 'delete'
  })
}
